﻿namespace Repositories.DM;

/// <summary>
/// 操作日志
/// </summary>
[SugarTable("s_operationlog")]
public class OperationLog : Column_Base
{
    /// <summary>
    /// 用户id
    /// </summary>
    [SugarColumn(ColumnName = "userid")]
    public int UserId { get; set; }
    /// <summary>
    /// 账号
    /// </summary>
    [SugarColumn(ColumnName = "account")]
    public string Account { get; set; }

    /// <summary>
    /// 姓名
    /// </summary>
    [SugarColumn(ColumnName = "name")]
    public string Name { get; set; }

    /// <summary>
    /// 角色名称
    /// </summary>
    [SugarColumn(ColumnName = "rolename")]
    public string RoleName { get; set; }
    /// <summary>
    /// 用户ip
    /// </summary>
    [SugarColumn(ColumnName = "ip")]
    public string Ip { get; set; }

    /// <summary>
    /// 内容
    /// </summary>
    [SugarColumn(ColumnName = "content")]
    public string Content { get; set; }

    /// <summary>
    /// 操作时间
    /// </summary>
    [SugarColumn(ColumnName = "operatetime")]
    public DateTime OperateTime { get; set; } = DateTime.Now;
}
